package com.wing.storage.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wing.product.model.response.WarehouseAreaSkuItermVo;
import com.wing.product.model.response.WarehouseSkuExportVO;
import com.wing.storage.model.entity.WarehouseAreaSkuIterm;
import com.wing.storage.model.response.WarehouseSkuItermVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


/**
 * 库位存货明细-Dao
 *
 */
@Mapper
public interface WarehouseAreaSkuItermDao extends BaseMapper<WarehouseAreaSkuIterm> {

    List<WarehouseSkuItermVo> list4app(@Param("page") Page<WarehouseSkuItermVo> page, @Param("params") Map<String, Object> params);


    /**
     * 查询库存
     * @param warehouseId
     * @return
     */
    List<WarehouseAreaSkuItermVo> getAreaSkuItermInfoBy(@Param("warehouseId") Long warehouseId);

    /**
     * 导出信息
     * @param params
     * @return
     */
    List<WarehouseSkuExportVO> listExport(@Param("params") Map<String, Object> params);

    /**
     * 根据skuCode查询skuCode对应的库位
     * @param params
     * @return
     */
    List<WarehouseSkuItermVo>  getSkuShelfSpaceCode(@Param("params") Map<String, Object> params);

}
